package cn.yll.order.entity;

import cn.yll.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单商品行记录表映射实体
 * </p>
 *
 * @author yll
 * @since 2022-08-03
 */
@Data
@Accessors(chain = true)
@TableName("order_lines")
@ApiModel(value = "OrderLinesEntity对象", description = "订单商品行记录表映射实体")
public class OrderLinesEntity extends BaseEntity {

    @ApiModelProperty("订单ID")
    private Long orderId;

    @ApiModelProperty("商品行号")
    private Integer lineNum;

    @ApiModelProperty("商品ID")
    private Long goodId;

    @ApiModelProperty("购买数量")
    private Integer goodNum;

    @ApiModelProperty("商品购买时单价")
    private Integer price;

    @ApiModelProperty("总消费金额")
    private Integer totalCost;


}
